///支付返回实体类
class AppPayResult {
  int userId = 0;
  int channelId = 0;
  num amount = 0;
  int type = 0;
  String htmlStr="";
  String outTradeNo="";
  int vipNum=0;//vip购买月数
  String shopdate="";//商户日期(该参数做交易与查询时需要一致)
  int payState=0;//支付状态
  String tradeNo="";//银盛订单号
  AppPayResult(
      {this.userId=0,
        this.channelId=0,
        this.amount=0,
        this.type=0,
        this.htmlStr="",
        this.outTradeNo="",
        this.vipNum=0,
        this.shopdate="",
      this.payState=0,
      this.tradeNo=""});

  AppPayResult.fromJson(Map<String, dynamic> json) {
    userId = json['userId']??0;
    channelId = json['channelId']??0;
    amount = json['amount']??0;
    type = json['type']??0;
    htmlStr = json['htmlStr']??"";
    outTradeNo = json['outTradeNo']??"";
    vipNum = json['vipNum']??0;
    shopdate = json['shopdate']??"";
    payState = json['payState']??0;
    tradeNo = json['tradeNo']??"";
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userId'] = this.userId;
    data['channelId'] = this.channelId;
    data['amount'] = this.amount;
    data['type'] = this.type;
    data['htmlStr'] = this.htmlStr;
    data['outTradeNo'] = this.outTradeNo;
    data['vipNum'] = this.vipNum;
    data['shopdate'] = this.shopdate;
    data['payState'] = this.payState;
    data['tradeNo'] = this.tradeNo;
    return data;
  }
}
